var login = {
	init : function(){
		this.checkLogin();
	},
	checkLogin : function(){
		var name = getCookie("username");
		var uid = getCookie("uid");
		if(typeof(name) != "undefined" && typeof(uid) != "undefined"){
			var loginHtml = 'Welcome '+name+' Enjoy entertainments at Starlight Casino<a class="aAccount" href="/index.php?r=user/account">My Account</a><a href="/index.php?r=order/my" class="aOrder">My Reservations</a><a href="/index.php?r=user/logout" class="aQuit">Sign Out</a>';
			$(".pLogin").html(loginHtml);
		}else{
			var loginHtml = '<a href="/login.html" class="aLogin">login</a>';
			$(".pLogin").html(loginHtml);
		}
	}
};
login.init();

